package com.ruoyi.system.mapper;

import java.util.List;

import com.ruoyi.system.domain.ByDb15;
import com.ruoyi.system.domain.ByShopcar;
import org.apache.ibatis.annotations.Param;

/**
 * ByShopCarMapper接口
 * 
 * @author ruoyi
 * @date 2024-04-14
 */
public interface ByShopcarMapper 
{
    /**
     * 查询ByShopCar
     * 
     * @param id ByShopCar主键
     * @return ByShopCar
     */
    public ByShopcar selectByShopcarById(String id);

    /**
     * 查询ByShopCar列表
     * 
     * @param byShopcar ByShopCar
     * @return ByShopCar集合
     */
    public List<ByShopcar> selectByShopcarList(ByShopcar byShopcar);

    /**
     * 查询ByShopCar列表
     *
     * @param userId ByShopCar
     * @return ByShopCar集合
     */
    public List<ByShopcar> selectByShopcarUserList(@Param("userId") String userId);

    /**
     * 新增ByShopCar
     * 
     * @param byShopcar ByShopCar
     * @return 结果
     */
    public int insertByShopcar(ByShopcar byShopcar);

    /**
     * 修改ByShopCar
     * 
     * @param byShopcar ByShopCar
     * @return 结果
     */
    public int updateByShopcar(ByShopcar byShopcar);

    /**
     * 删除ByShopCar
     * 
     * @param id ByShopCar主键
     * @return 结果
     */
    public int deleteByShopcarById(String id);

    /**
     * 批量删除ByShopCar
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteByShopcarByIds(String[] ids);

    /**
     * 删除购物车
     *
     * @param
     * @return 结果
     */
    public int deleteByShopcarByStandard(@Param("userId")String userId, @Param("standardId")String standardId);
}
